package test.y2020;

import cn.hutool.core.lang.Console;
import common.dto.CouponPkgRespVo;
import common.dto.MultiAppletScenesHisPo;
import org.mapstruct.factory.Mappers;
import utils.CouponPkgRespVoMapping;

import java.sql.Timestamp;
import java.util.Collections;
import java.util.Date;
import java.util.List;

/**
 * Created By  醉美柳舞之众星捧月
 *
 * @author songx
 * @date 2020/2/9 22:15
 */
public class January3 {

    public static void main(String[] args) {
        CouponPkgRespVoMapping mapper = Mappers.getMapper(CouponPkgRespVoMapping.class);
        MultiAppletScenesHisPo multiAppletScenesHisPo = new MultiAppletScenesHisPo();
        multiAppletScenesHisPo.setId(12345L);
        multiAppletScenesHisPo.setCreateTimestamp(new Timestamp(System.currentTimeMillis() - 10000000));
        multiAppletScenesHisPo.setContent("我现在 准备转换");
        multiAppletScenesHisPo.setOperator("操作者 ？？？？？");
        multiAppletScenesHisPo.setScenesId(" see u.");
        multiAppletScenesHisPo.setOperationId("事务ID");
        CouponPkgRespVo change = mapper.change(multiAppletScenesHisPo);
        Console.error(change);


        List<String> strings = mapper.stringListToDateList(Collections.singletonList(new Date()));
        Console.error(strings);
    }
}
